package com.bullsora.kindlerss.web.mvc;

import com.bullsora.kindlerss.business.AppUserService;
import com.bullsora.kindlerss.model.Feed;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;

@RequestMapping("/feeds")
@Controller
@RooWebScaffold(path = "feeds", formBackingObject = Feed.class)
public class FeedController {

  @Autowired
  private AppUserService appUserService;

  void populateEditForm(Model uiModel, Feed feed) {
    uiModel.addAttribute("feed", feed);
//      uiModel.addAttribute("appusers", appUserService.findAllAppUsers());
//      uiModel.addAttribute("feedurls", feedUrlService.findAllFeedUrls());
  }

}
